m01daf
m01daf
© Numerical Algorithms Group, 2002.
Purpose
M01DAF Rank a vector, real numbers
Synopsis
[irank,ifail] = m01daf(rv<,order,ifail>)
Description
M01DAF uses a variant of list-merging. The routine takes
advantage of natural ordering in the data, and uses a simple list
insertion in a preparatory passto generate ordered lists of length
at least 10. The ranking is stable: equal elements preserve their
ordering in the input data.
Parameters
m01daf
Required Input Arguments:
rv (:) real
Optional Input Arguments: <Default>
order (1) string 'a'
ifail integer -1
Output Arguments:
irank (:) integer
ifail integer